﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class Seat
{
    /// <summary>
    /// Use this if no additional price and legspace is needed and it's not a handicap seat.
    /// </summary>
    /// <param name="row">In which row is the seat placed</param>
    /// <param name="seatNumber">Which number is the seat</param>
    /// <param name="room">Which Cinema Room is it in?</param>
    public Seat(int row, int seatNumber, int room)
    {
        Row = row;
        SeatNr = seatNumber;
        Price = 0;
        Handicap = false;
        LegSpace = false;
        CinemaRoom = room;
    }
    /// <summary>
    /// This is used if it's needed to specify a price, legspace or if it's a handicap seat.
    /// </summary>
    /// <param name="row">In which row is the seat placed</param>
    /// <param name="seatNumber">Which number is the seat</param>
    /// <param name="price">Is there any additional price to the seat</param>
    /// <param name="handicap">Is it a handicap seat</param>
    /// <param name="legspace">Is there any additional legspace</param>
    /// <param name="room">Which Cinema Room is it in?</param>
    public Seat(int row, int seatNumber, double price, bool handicap, bool legspace, int room)
    {
        Row = row;
        SeatNr = seatNumber;
        Price = price;
        Handicap = handicap;
        LegSpace = legspace;
        CinemaRoom = room;
    }

    public override String ToString()
    {
        return "Row:"+Row+" SeatNo:"+SeatNr+" Room:"+CinemaRoom+" Price:"+Price+" Handicap:"+Handicap+" Legspace:"+LegSpace;
    }

    #region Properties
    public int Row { get; set; }
    public int SeatNr { get; set; }
    public double Price { get; set; }
    public bool Handicap { get; set; }
    public bool LegSpace { get; set; }
    public int CinemaRoom { get; set; }
    #endregion
}

